package com.zhz.feign;

import com.zhz.config.feign.OAuth2FeignConfig;
import com.zhz.dto.AdminBankDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author ：zhz
 * @date ：Created in 2021/05/09
 * @version: V1.0
 * @slogan: 天下风云出我辈，一入代码岁月催
 * @description:
 **/

@FeignClient(name = "admin-service",path = "/adminBanks",configuration = OAuth2FeignConfig.class)
public interface AdminBankServiceFeign {

        @GetMapping("/list")
        List<AdminBankDto> getAllAdminBanks();
}
